FROM ubuntu:22.04
RUN echo 'deb [trusted=yes] http://192.168.1.111/deb/ ./' > /etc/apt/sources.list \ 
  && apt-get update \
  && echo -e '6\n70' | apt-get -y install curl sudo tzdata dirmngr gpg gpg-agent apt-utils software-properties-common wget systemd \
  && curl -fsSL http://192.168.1.111/onlyoffice.tar | tar x -C /mnt \
  && cd /mnt/onlyoffice \
  && ./install-Debian.sh -ls true \
  && cd /etc && rm -f localtime && ln -s /usr/share/zoneinfo/Asia/Shanghai localtime \
  && apt-get clean && rm -rf /var/lib/apt/lists/* /mnt/onlyoffice
EXPOSE 80
